package com.springboot.dense.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.client.RestTemplate;

import java.util.ArrayList;
import java.util.List;

public class PythonUtil {

    private String urlBase = "http://106.55.57.114:5000/E:/CS/img/";

    private RestTemplate restTemplate = new RestTemplate();

    public ArrayList httpGet(String imageName){
        System.out.println(urlBase + imageName);
        ArrayList resultList = restTemplate.getForObject(urlBase + imageName, ArrayList.class);

        return resultList;
    }
}
